package constants;

import java.io.File;

public class Constants {

	public enum STYLE {NAME,ORGANIZATION,LOCATION};
	public static final String TEXT_FLAG = "Text";
	public static final boolean DEBUG = false;
	
	public static final String MAX_NAME_LINES = "MAX_NAME_LINES";	// key to get number of entries from name lexicon
	
	// file paths
	public static final String NAMES_LEXICON_PATH = "res"+File.separator+
														"names"+File.separator+"NAMES_FILTERED";
	public static final String GEO_LEXICON_PATH = "res"+File.separator+
													"geo"+File.separator+"GEO_FILTERED";
	public static final String ORG_LEXICON_PATH = "res"+File.separator+
													"org"+File.separator+"ORGANIZATION";
	public static final String STOP_LIST_PATH = "res"+File.separator+
													"stop"+File.separator+"english.stop";
	
	// ----------- factors for scoring ----------------
	// init score values
	public static final double NAME_INIT_SCORE = 0.0;	// initial score value (before we start adding points)
	public static final double LOCATION_INIT_SCORE = 0.0;
	public static final double ORG_INIT_SCORE = 0.0;
	public static final double BAD_INIT_SCORE = 0.0;

	// lexicon hit factors
	public static final double NAME_LEXICON_FACTOR = 1.0; // a simple word (part) of the token was found
	public static final double NAME_LEXICON_FULL_HIT_FACTOR = 1.75; // the whole token (more than 2 words) was found
	public static final double LOCATION_LEXICON_FACTOR = 1.0;
	public static final double LOCATION_LEXICON_FULL_HIT_FACTOR = 1.75;
	public static final double ORG_LEXICON_FACTOR = 1.0;
	public static final double ORG_LEXICON_FULL_HIT_FACTOR = 1.75;
	
	// phrase position factors
	public static final double PHRASE_BEGINNING_FACTOR = 3.0;	// bad score factor is word is first in sentence
	
	// already found before (in memory map) factor
	public static final double NAME_IN_MAP_FACTOR = 3.0;	// if this token was identified in previous times as a certain entity
	public static final double LOCATION_IN_MAP_FACTOR = 3.0;
	public static final double ORG_IN_MAP_FACTOR = 3.0;
}
